//
//  XMIndexHeaderView.h
//  xiaorizi
//
//  Created by new-1020 on 2017/4/18.
//  Copyright © 2017年 begmoon. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol XMIndexHeaderViewDelegate <NSObject>
-(void)XMIndexHeaderViewDidselectedWithIndex:(NSInteger)index;
@end

@interface XMIndexHeaderView : UIView

@property (nonatomic,assign) BOOL AnimationIsOpen;
@property (nonatomic,assign) BOOL hideLine;
@property (nonatomic,weak) id <XMIndexHeaderViewDelegate> delegateXM;
@property (nonatomic,strong) UIFont * font;
@property (nonatomic,strong) UIColor *fontColor;
@property (nonatomic,strong) UIColor *selectFontColr;
@property (nonatomic,strong) UIColor *lineColor;
@property (nonatomic,assign) CGFloat lineWidth;

-(instancetype)initWithFrame:(CGRect)frame WithTitleArray:(NSArray *)titleArray animation:(BOOL)animation;
-(void)LineViewScrolleToIndex:(NSInteger)index;


@end
